package pojo.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class Record {

    private Long recordId;                              //主键ID
    private Long userId;                                //用户id
    private Integer sumOrder;                           //订单总数
    private Integer sumGood;                            //商品总数
    private Integer logType;                            //区分登录注册（登录1，注册2）
    private String browser;                             //浏览器类型
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;                            //创建时间

    public Record() {
    }

    public Record(Long userId, Integer sumOrder, Integer sumGood, Integer logType,String browser) {
        this.userId = userId;
        this.sumOrder = sumOrder;
        this.sumGood = sumGood;
        this.logType = logType;
        this.browser = browser;
    }

    public Record(Long userId, Integer sumOrder, Integer sumGood, Integer logType) {
        this.userId = userId;
        this.sumOrder = sumOrder;
        this.sumGood = sumGood;
        this.logType = logType;
    }

    public Record(Long recordId, Integer sumOrder, Integer sumGood) {
        this.recordId = recordId;
        this.sumOrder = sumOrder;
        this.sumGood = sumGood;
    }

    public String getBrowser() {
        return browser;
    }

    public void setBrowser(String browser) {
        this.browser = browser;
    }

    public Long getRecordId() {
        return recordId;
    }

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getSumOrder() {
        return sumOrder;
    }

    public void setSumOrder(Integer sumOrder) {
        this.sumOrder = sumOrder;
    }

    public Integer getSumGood() {
        return sumGood;
    }

    public void setSumGood(Integer sumGood) {
        this.sumGood = sumGood;
    }

    public Integer getLogType() {
        return logType;
    }

    public void setLogType(Integer logType) {
        this.logType = logType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Record{" +
                "recordId=" + recordId +
                ", userId=" + userId +
                ", sumOrder=" + sumOrder +
                ", sumGood=" + sumGood +
                ", logType=" + logType +
                ", createTime=" + createTime +
                '}';
    }
}
